﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:sys="clr-namespace:System;assembly=mscorlib"
                    xmlns:Controls="clr-namespace:GraphSharp.Controls">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="pack://application:,,,/XmlStudio;Component/Resources/Graph/XmlGraphDataTemplates.xaml"/>
        <ResourceDictionary Source="pack://application:,,,/XmlStudio;Component/Resources/Graph/LayoutParameterTemplates.xaml" />
        <ResourceDictionary Source="pack://application:,,,/XmlStudio;Component/Resources/Graph/Templates/XmlElementViewModelTemplate.xaml"/>
        <ResourceDictionary Source="pack://application:,,,/XmlStudio;Component/Resources/Converters.xaml" />
    </ResourceDictionary.MergedDictionaries>

    <ObjectDataProvider
				x:Key="algorithmConstraintEnum" MethodName="GetValues" ObjectType="{x:Type sys:Enum}" >
        <ObjectDataProvider.MethodParameters>
            <x:Type TypeName="Controls:AlgorithmConstraints" />
        </ObjectDataProvider.MethodParameters>
    </ObjectDataProvider>

    <DataTemplate x:Key="AlgorithmTypeTemplate">
        <Border BorderThickness="1" BorderBrush="Gray">
            <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" ToolTip="{Binding Path='.'}" Text="{Binding Path=., Converter={StaticResource TextTrimConverter}, ConverterParameter=5}" />
        </Border>
        <!--<Label Content="{Binding Path=.}" MinWidth="90" HorizontalAlignment="Center" Margin="2" Padding="0" />-->
    </DataTemplate>

    <DataTemplate x:Key="OverlapRemovalTemplate">
        <Label Content="{Binding Path=.}" MinWidth="90" HorizontalAlignment="Center" Margin="2" Padding="0" />
    </DataTemplate>

    <DataTemplate x:Key="OverlapRemovalAlgorithmTemplate">
        <Label Content="{Binding Path=.}" MinWidth="90" HorizontalAlignment="Center" Margin="2" Padding="0" />
    </DataTemplate>
</ResourceDictionary>